/**
 * OCLC, Inc.
 *
 * OCLC proprietary information: the enclosed materials contain
 * proprietary information of OCLC Online Computer Library Center, Inc.
 * and shall not be disclosed in whole or in any part to any third party
 * or used by any person for any purpose, without written consent of
 * OCLC, Inc.  Duplication of any portion of these materials shall
 * include this legend.
 *
 * customizeClassExamplesTest
 *
 * @author Jackie Gleason
 * @version 1.0
 */
package org.oclc.presentations.tests

import org.junit.Test
import org.oclc.presentations.customizexml.PlayerCustomized
import javax.xml.bind.JAXBContext
import javax.xml.bind.Marshaller

class customizeClassExamplesTest {
    @Test
    public void javaTest() {
        PlayerCustomized player = new PlayerCustomized(name: "Jackie", rank: 1)
        StringWriter writer = new StringWriter()
        JAXBContext context = JAXBContext.newInstance(PlayerCustomized)
        Marshaller m = context.createMarshaller()
        m.marshal(player, writer)
        println(writer)
    }
}
